package org.zhouhe.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Keyword entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "keyword", catalog = "zpd0t1_db")
public class Keyword implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 4474495221524492303L;
	private Integer keywordId;
	private String words;
	private Integer hits;

	// Constructors

	/** default constructor */
	public Keyword() {
	}

	/** full constructor */
	public Keyword(String words, Integer hits) {
		this.words = words;
		this.hits = hits;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "keyword_id", unique = true, nullable = false)
	public Integer getKeywordId() {
		return this.keywordId;
	}

	public void setKeywordId(Integer keywordId) {
		this.keywordId = keywordId;
	}

	@Column(name = "words", nullable = false, length = 64)
	public String getWords() {
		return this.words;
	}

	public void setWords(String words) {
		this.words = words;
	}

	@Column(name = "hits", nullable = false)
	public Integer getHits() {
		return this.hits;
	}

	public void setHits(Integer hits) {
		this.hits = hits;
	}

}